.commodity {
  width: 100%;
  height: 100%;
  overflow: auto;
  border-radius: 5px;
  padding: 10px;
  box-sizing: border-box;
  color: var(--g-theme-color);
  :global {
    .content {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      .content_item {
        width: 100%;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 10px;
        background: var(--g-theme-shop-bg) no-repeat;
        background-size: 100% 100%;

        @media only screen and (max-width: 600px) {
          background: var(--g-theme-mobile-shop-bg);
        }
        border: 1px solid var(--g-theme-shop-boder-color);
        .content_item-title {
          width: 60%;
          text-align: left;
          font-size: 26px;
          font-weight: bold;
          background: var(--g-theme-shop-title-bg) no-repeat;
          background-size: 100% 100%; // stretch to fill available space. (It's not possible to stretch to 0 width.);
          border-radius: 25px;
          padding: 0px 10px;
          box-sizing: border-box;
          color: var(--g-theme-title-color);
          display: flex;
          justify-content: flex-start;
          align-items: center;

          @media only screen and (max-width: 600px) {
            width: 100%;
            margin-bottom: 20px;
            background-size: auto 100%; // stretch to fill available space. (It's not possible to stretch to 0 width.);
          }
          .content_item-title-icon {
            width: 30px;
            height: 30px;
            margin-right: 5px;
          }
          .productInfo {
            font-size: 12px;
          }
        }

        .content_item-warp {
          width: 100%;
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 50px;
          padding: 3% 8%;
          @media only screen and (max-width: 600px) {
            grid-template-columns: repeat(1, 1fr);
            gap: 15px;
          }
          .content_card-item-info {
            width: 100%;
            height: 100%;
            background: red;
          }
          .content_item-warp-item {
            border-radius: 10px;
            padding: 10px;
            text-align: center;
            background: var(--g-theme-shop-custom-card-bg) no-repeat;
            background-size: 100% 100%;
            cursor: pointer;
            position: relative;
            &:hover {
              background: var(--g-theme-shop-active-card-bg) no-repeat;
              background-size: 100% 100%;
              .content_item-info-warp {
                display: block;
              }

              @media only screen and (max-width: 600px) {
                .content_item-info-warp {
                  display: none;
                }
              }
            }
            .coinName {
              font-size: 20px;
              font-weight: bold;
              color: var(--g-theme-card-title-color);
            }

            .content_item-info-warp {
              width: 100%;
              border-radius: 10px;
              background: var(--g-theme-shop-info-card-bg) no-repeat;
              background-size: 100% 100%;
              position: absolute;
              top: calc(100% + 40px);
              left: 0;
              z-index: 20;
              display: none;
              transition: all 0.5s ease-in-out;
              .arrowDownIcon {
                width: 55px;
                height: 55px;
                position: absolute;
                top: -45px;
                transform: rotate(180deg);
                left: 50%;
                margin-left: -27px;
              }
              .content_item-info-box {
                width: 100%;
                .content_item-info-title {
                  font-size: 16px;
                  font-weight: bold;
                  text-align: center;
                  color: var(--g-theme-color);
                  border-bottom: 1px solid #eee;
                  padding: 5px 0;
                  box-sizing: border-box;
                  display: flex;
                  justify-content: center;
                  align-items: center;
                  .diamondVipIcon {
                    width: 25px;
                    height: 25px;
                    margin-right: 5px;
                  }
                }

                .content_item-info-context {
                  padding: 5px 10px;
                  box-sizing: border-box;
                  color: var(--g-theme-color);
                  font-weight: bold;
                  line-height: 2;
                }
              }
            }

            .hotIcon {
              width: 45px;
              height: 45px;
              position: absolute;
              top: -20px;
              left: -10px;
            }

            .checkIcon {
              width: 25px;
              height: 25px;
              position: absolute;
              right: 3px;
              bottom: 3px;
              @media only screen and (max-width: 600px) {
                right: 10%;
              }
            }

            .count {
              font-size: 26px;
              font-weight: bold;
              color: var(--g-theme-card-title-color);
            }

            .priceBpx {
              width: 100%;
              margin: 10px 0;
              display: flex;
              justify-content: center;
              align-items: baseline;
              .newPrice {
                font-size: 26px;
                font-weight: bold;
                color: var(--g-theme-shop-card-newPrice);
              }

              .oldPrice {
                color: var(--g-theme-shop-card-oldPrice);
                font-size: 14px;
                text-decoration: line-through;
                margin-left: 10px;
                font-weight: bold;
              }
            }

            .desc {
              display: flex;
              justify-content: center;
              align-items: center;
              font-size: 16px;
              font-weight: bold;
              color: var(--g-theme-desc-custom-color); /* #191919 */
              .infoIcon {
                width: 15px;
                height: 15px;
                margin-left: 5px;
                opacity: 0.7;
              }
            }
          }

          .mobile_content_item-info-warp {
            display: none;
            font-size: 12px;
            color: var(--g-theme-desc-custom-color);
            @media only screen and (max-width: 600px) {
              display: block;
            }
          }

          .content_item-warp-item-active {
            background: var(--g-theme-shop-active-card-bg) no-repeat;
            background-size: 100% 100%;
            .desc {
              color: var(--g-theme-desc-active-color); /* #191919 */
            }
          }
        }

        .content_item-tools {
          width: 100%;
          display: flex;
          justify-content: flex-end;
          padding: 0% 4%;

          .content_item-label {
            font-size: 20px;
            font-weight: bold;
            color: var(--g-theme-card-title-color);
          }
          .content_item-price {
            font-size: 20px;
            font-weight: bold;
            color: var(--g-theme-shop-card-newPrice);
            margin: 0 10px;
          }

          .content_item-btn {
            background: #f8d849;
            padding: 5px 10px;
            font-size: 14px;
            cursor: pointer;
            font-weight: bold;
            border-radius: 5px;
          }
        }
      }
    }
  }
}
